<template>
	<scroll-view scroll-y class="help-center">
		<view class="item" v-for="(i, ii) in list" :key="ii">
			<image :src="i.askPic" class="bnn" mode="widthFix"></image>
			<image class="wcann" src="../../../static/wc.png" mode=""></image>
			<view class="title">{{ i.ask_title }}</view>
		</view>
	</scroll-view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
				userInfo: null,
			}
		},
		onLoad() {
			const userInfo = uni.getStorageSync("userInfo");
			this.userInfo = JSON.parse(userInfo);
			this.$request('/api/hlx-question/questionResultList',{
				openId: this.userInfo.openId
			},'get').then(res => {
				console.log(res.data.data)
				this.list = res.data.data
			})
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="less">
	.help-center{
		background-color: #EFEFF1;
		height: 100vh;
	}
.item{
	position: relative;
	margin: 40rpx;
	border-radius: 10rpx;
	background-color: #fff;
	overflow: hidden;
	.bnn{
		width: 100%;
		min-height: 240rpx;
		height: auto;
		background-color: aliceblue;
		will-change: auto;
	}
	.wcann{
		position: absolute;
		width: 106rpx;
		height: 96rpx;
		top: 10rpx;
		left: 12rpx;
	}
	.title{
		padding: 20rpx;
		font-size: 30rpx;
		font-weight: bold;
	}
}
</style>
